package git.JiangZhiXian.shape;

public class Text {
    public static void main(String[] args) {
        Circular circular = new Circular();
        Rectangle rectangle = new Rectangle();

        circular.draw();
        circular.setRadius(2.0);
        System.out.println("圆的面积为："+circular.area());

        rectangle.draw();
        rectangle.setLength(3.0);
        rectangle.setWidth(2.0);
        System.out.println("矩形的面积为："+rectangle.area());




    }
}
